<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="loc">

<TABLE class="body" cellSpacing="0" cellPadding="0" width="100%" border="0">
	<TBODY>
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-t-back.gif"><IMG height="8" src="/imgs/pvts/box-t.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-tr.gif" width="8" border="0"/></TD>
		</TR>
		<TR vAlign="top"> 
			<TD width="8" background="/imgs/pvts/box-l-back.gif"><IMG height="10" src="/imgs/pvts/box-l.gif" width="8" border="0"/></TD>
			<TD width="100%" align="left" style="padding:5px;">

<div style="position:relative; margin-left:10px; margin-right:10px; width: 100%;">
	<div style="">
	<div style="padding-top:5px; margin-top:5px;">
	<a href="/network/localeShow.aspx?lid={@lid}"><b><xsl:value-of select="@name"/></b></a>
	</div>
	<xsl:choose>
		<xsl:when test='string-length(@mapid)&gt;0'>
<!-- INIZIO MAPORAMA -->
<div style="padding-top:3px;">
<b><a class="black" target="_blank" href="http://www.maporama.com/share/map.asp?MapID={@mapid}&amp;language=it"><xsl:value-of select="@address"/></a></b>
</div>
<!-- FINE MAPORAMA -->
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="@address"/>
		</xsl:otherwise>
	</xsl:choose>
	</div>
<img src="/imgs/spacer.gif" height="10px"/>
<hr/>
<img src="/imgs/spacer.gif" height="10px"/>
<br/>

<xsl:if test="activity">
<div style="font-family:tahoma;
font-size:13pt;
color:black;
padding-top:20px;padding-bottom:10px;">
Prossimi eventi al <b><xsl:value-of select="@name"/></b>
</div>

	<xsl:for-each select="activity">
	<p/><a class="body9pt" href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="substring(@duedate,9,2)"/>/<xsl:value-of select="substring(@duedate,6,2)"/>/<xsl:value-of select="substring(@duedate,1,4)"/><br/><font color="#000000"><xsl:value-of select="@title"/></font></a>
	<xsl:if test="@banner"><br/><a href="/activities/activityShow.aspx?activityId={@activityid}" class="body_10px_red"><img border="0" src="/imgs/banner/{@banner}"/></a></xsl:if>
	</xsl:for-each>
</xsl:if>
</div>

			</TD>
			<TD width="8" background="/imgs/pvts/box-r.gif"><IMG height="10" src="/imgs/pvts/box-r.gif" width="8" border="0"/></TD>
		</TR>
		<TR> 
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-bl.gif" width="8" border="0"/></TD>
			<TD width="100%" background="/imgs/pvts/box-b.gif"><IMG height="8" src="/imgs/pvts/box-b.gif" width="10" border="0"/></TD>
			<TD width="8"><IMG height="8" src="/imgs/pvts/box-br.gif" width="8" border="0"/></TD>
		</TR>
	</TBODY>
</TABLE>

</xsl:template>

</xsl:stylesheet>